package com.wzy.vx.Utils;

import com.wzy.vx.VO.ResultVo;

/**
 * @ProjectName: vx
 * @Package: com.wzy.vx.Utils
 * @ClassName: ResuletVoUtils
 * @Author: Administrator
 * @Description: 只返回给前端部分数据
 * @Date: 2019/3/12 16:41
 * @Version: 1.0
 */
public class ResuletVoUtils {
    public static ResultVo success() {
        return success(null);
    }

    public static ResultVo success(Object object){
        ResultVo resultVo = new ResultVo();
        resultVo.setData(object);
        resultVo.setCode(0);
        resultVo.setMsg("成功");
        return resultVo;
    }
    public static ResultVo error(Integer code,String msg){
        ResultVo resultVo = new ResultVo();
        resultVo.setCode(code);
        resultVo.setMsg(msg);
        return resultVo;
    }
}
